/*
 * 微信公众平台(JAVA) SDK
 *
 * Copyright (c) 2014, Ansitech Network Technology Co.,Ltd All rights reserved.
 * 
 * http://www.weixin4j.org/sdk/
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.wss.common.wechat.spi.app.event;

import com.wss.common.wechat.massage.app.AuthInputMessage;
import com.wss.common.wechat.massage.app.TicketInputMessage;
import com.wss.common.wechat.massage.app.UnAuthInputMessage;
import com.wss.common.wechat.massage.app.UpAuthInputMessage;

/**
 * <p>
 * Title: 微信三方平台接受消息处理器</p>
 *
 * <p>
 * Description: 接受消息分4类，授权消息（1.获取ticket、2.授权、3.更新授权<br />
 * 、4.取消授权）<br />
 *
 * @author afei
 */
public interface IAppEventMessageHandler {


	/**
	 * ticket消息处理
	 *
	 * @param msg 接受消息对象
	 * @return 输出消息对象
	 */
	void ticketTypeMsg(TicketInputMessage msg);
	/**
	 * 授权消息处理
	 *
	 * @param msg 接受消息对象
	 * @return 输出消息对象
	 */
	void authTypeMsg(AuthInputMessage msg);
	/**
	 * 更新授权消息处理
	 *
	 * @param msg 接受消息对象
	 * @return 输出消息对象
	 */
	void upAuthTypeMsg(UpAuthInputMessage msg);
	/**
	 * 取消授权消息处理
	 *
	 * @param msg 接受消息对象
	 * @return 输出消息对象
	 */
	void unAuthTypeMsg(UnAuthInputMessage msg);
}
